# download sftp if not exist
if [ ! -f "sftp" ]; then
    wget https://gitee.com/anolis/hygon-devkit/raw/master/tools/sftp
    chmod +x sftp
fi

# download and install rock
echo "downloading rock kernel"
./sftp download hygon-devkit/4.0/2025-01-01/csv/dcu/rock-kernel-refactory-rock-5.7.1-6.2.28-V1.6-TEE.aio.run rock-kernel-refactory-rock-5.7.1-6.2.28-V1.6-TEE.aio.run
chmod +x rock-kernel-refactory-rock-5.7.1-6.2.28-V1.6-TEE.aio.run
echo "installing rock kernel"
./rock-kernel-refactory-rock-5.7.1-6.2.28-V1.6-TEE.aio.run

